package model
{
	import com.greensock.easing.*;
	import com.greensock.greensock.*;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Point;
	
	public class leftAdd extends Sprite
	{
		protected var clickPigGame:Sprite;
		public function leftAdd()
		{
			super();
									
			this.addEventListener(Event.ADDED_TO_STAGE,oninit)
		}
		
		protected function oninit(event:Event):void
		{
			drawClickRect();
			stage.addEventListener(Event.ENTER_FRAME,onEnterFrame)
			
		}
		
		protected function onEnterFrame(event:Event):void
		{
			 
		}
		
		/**
		 *画一个响应点击的方块区域 
		 * 
		 */		
		protected function drawClickRect():void
		{
			clickPigGame = new Sprite();
			clickPigGame.graphics.beginFill(0xffffff,0);
			clickPigGame.graphics.drawRect(0,0,DataBar.gameW,DataBar.rectH);
			clickPigGame.graphics.endFill();			
			addChild(clickPigGame);
			
		}
		
		
		
		
		
		
		
		
	}
}